package com.dreamtour.controller;


import com.dreamtour.service.ICitiesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author xls
 * @since 2024-12-24
 */
@RestController
@RequestMapping("/cities")
public class CitiesController {
    @Autowired
    private ICitiesService citiesService;

    @RequestMapping("/getCityDistribution")
    public List<Map<String, Object>> getCityDistribution() {
        return citiesService.getCityDistribution();
    }
}
